package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.MeetingPaper;
import com.zhijian.medical.entity.vo.request.MeetingPaperSearchVo;
import com.zhijian.medical.entity.vo.request.MeetingPaperSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.MeetingPaperVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 会议论文 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-04-29 17:24:19
 */
public interface MeetingPaperService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    MeetingPaper selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    MeetingPaperVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param meetingPaper
    * @return
    */
    Long insert(MeetingPaper meetingPaper);

    /**
    * 更改
    *
    * @param meetingPaper
    * @return
    */
    boolean update(MeetingPaper meetingPaper);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(MeetingPaper record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(MeetingPaperSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(MeetingPaperSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param meetingPaperSearchVo
    * @return
    */
    MeetingPaperVo selectOne(MeetingPaperSearchVo meetingPaperSearchVo);

    /**
    * 总数
    *
    * @param meetingPaperSearchVo
    * @return
    */
    Integer count(MeetingPaperSearchVo meetingPaperSearchVo);

    /**
    * 列表
    *
    * @param meetingPaperSearchVo
    * @return
    */
    List<MeetingPaperVo> selectList(MeetingPaperSearchVo meetingPaperSearchVo);

    /**
    * 分页查询
    *
    * @param meetingPaperSearchVo
    * @return
    */
    Page<MeetingPaperVo> selectPage(MeetingPaperSearchVo meetingPaperSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<MeetingPaper> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param meetingPaperSearchVo
    * @return
    */
    void deleteByCondition(MeetingPaperSearchVo meetingPaperSearchVo);
}